<<<<<<< HEAD
package lesson7.pages;


import org.openqa.selenium.WebDriver;


/**
 * Created with IntelliJ IDEA.
 * User: alisa
 * Date: 29.03.14
 * Time: 15:21
 * To change this template use File | Settings | File Templates.
 */
public abstract class BasePage {
    protected static WebDriver driver;

    public BasePage(WebDriver driver) {
        this.driver = driver;
    }
}
=======
package lesson7.pages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;

/**
 * Created with IntelliJ IDEA.
 * User: alisa
 * Date: 29.03.14
 * Time: 15:21
 * To change this template use File | Settings | File Templates.
 */
public abstract class BasePage {
    protected static WebDriver driver = new FirefoxDriver();

    protected BasePage(WebDriver driver) {
        this.driver = driver;
    }
    abstract void openPage();


    @AfterSuite
    public static void closeBrowser() {
        driver.quit();
    }
}
>>>>>>> 08ceff2d8ef6c4ba599425ebdc1d58550dbc1fb6
